.daily-hexagram {
  padding: 20px;
  min-height: 100vh;
  background-color: #f8f4e8;

  .container {
    max-width: 600px;
    margin: 0 auto;
  }

  .header {
    text-align: center;
    margin-bottom: 30px;

    .title {
      font-size: 24px;
      color: #5a3921;
      margin-bottom: 8px;
    }

    .subtitle {
      font-size: 16px;
      color: #8c7b6b;
    }
  }

  .divination-area {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .hexagram-container {
    text-align: center;
    margin-bottom: 20px;
  }

  .hexagram-result {
    .hexagram-symbol {
      margin-bottom: 16px;
    }

    .hexagram-name {
      font-size: 22px;
      color: #5a3921;
      margin-bottom: 8px;
    }

    .hexagram-meaning {
      font-size: 16px;
      color: #8c7b6b;
      margin-bottom: 16px;
    }

    .divider {
      height: 1px;
      background-color: #e0d6c8;
      margin: 16px 0;
    }

    .hexagram-description {
      font-size: 14px;
      color: #5a3921;
      line-height: 1.6;
    }
  }

  .hexagram-placeholder {
    p {
      font-size: 16px;
      color: #8c7b6b;
      margin-bottom: 16px;
    }

    .coins-image {
      font-size: 32px;
      margin: 16px 0;

      &.shaking {
        animation: shake 0.5s infinite;
      }
    }
  }

  .shake-button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #5a3921;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;

    &:disabled {
      background-color: #8c7b6b;
      cursor: not-allowed;
    }
  }

  .interpretation-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    .card-title {
      font-size: 18px;
      color: #5a3921;
      margin-bottom: 16px;
      padding-bottom: 8px;
      border-bottom: 1px solid #e0d6c8;
    }

    .interpretation-content {
      .interpretation-item {
        margin-bottom: 16px;

        .item-title {
          font-size: 16px;
          color: #5a3921;
          margin-bottom: 8px;
        }

        .item-content {
          font-size: 14px;
          color: #8c7b6b;
          line-height: 1.6;
        }
      }
    }

    .placeholder-text {
      font-size: 14px;
      color: #8c7b6b;
      text-align: center;
    }
  }
}

@keyframes shake {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(5deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}

.hexagram-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;

  .hexagram-line {
    width: 80px;
    height: 8px;
    background-color: #5a3921;

    &.yin {
      background-color: transparent;
      border-top: 4px solid #5a3921;
      border-bottom: 4px solid #5a3921;
      height: 0;
    }
  }
}